/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.phone.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.phone.entity.PhoneCommodity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品DAO接口
 * @author lzw
 * @version 2019-04-03
 */
@MyBatisDao
public interface PhoneCommodityDao extends CrudDao<PhoneCommodity> {

    List<PhoneCommodity> obtainDayInfo();

    List<PhoneCommodity> obtainMonthInfo(String years);

    List<PhoneCommodity> obtainQuarterInfo(String years);

    List<PhoneCommodity> obtainYearInfo(String years);

    List<PhoneCommodity> obtainManufacturerDayInfo();

    List<PhoneCommodity> obtainCommodityDayInfo(@Param("productManufacturerId") String productManufacturerId);

    List<PhoneCommodity> obtainManufacturerMonthInfo(@Param("yrars") String yrars, @Param("month") String month);

    List<PhoneCommodity> obtainManufacturerQuarterInfo(@Param("yrars") String yrars,@Param("quarters")  String quarters);

    List<PhoneCommodity> obtainManufacturerYearInfo(@Param("yrars") String yrars);

    List<PhoneCommodity> obtainCommodityMonthInfo(@Param("yrars") String yrars, @Param("month") String month,@Param("productManufacturerId") String productManufacturerId);

    List<PhoneCommodity> obtainCommodityQuarterInfo(@Param("yrars") String yrars,@Param("quarters")  String quarters,@Param("productManufacturerId") String productManufacturerId);

    List<PhoneCommodity> obtainCommodityYearInfo(@Param("yrars") String yrars,@Param("productManufacturerId") String productManufacturerId);
}